home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / curdir.lqr / CURDIR.DOC < prev   
Text File  |  1985-06-03  |  1KB  |  28 lines

  1. Another Assembly Language Utility by Bob Murphy.
  2.  
  3.  
  4. CURDIR - A program to save and restore your hard disk current directory.
  5.  
  6. This program is intended to be used at the start and end of a .BAT file to
  7. allow return to the Directory\Subdirectory you started at.
  8.  
  9. CURDIR /S creates a file called DIR%.SAV in the root directory of drive C.
  10.           This file will be used later to restore the directory.
  11.  
  12. CURDIR /R restores the directory saved in DIR%.SAV, And deletes DIR%.SAV.
  13.  
  14. Example: Assume your current directory is C:\PL\ASM\PROJECT and you want
  15. to execute a batch file that changes directories.
  16. In normal DOS there is no way to return to your previous directory once it
  17. has changed, without using the CD command. If you want to use the BAT file
  18. from ANY subdirectory, then CURDIR will save the dir info, and in effect
  19. do the CD command for you.
  20. Example BATCH file:
  21.  
  22. CURDIR /S                          save whatever dir we are working in
  23. CD \                               go to the root directory
  24. CD \UTILS                          go to the utilities directory
  25. UTILITY                            run the utility
  26.                                    (ordinarily, no way to return to initial dir)
  27. CURDIR /R                          RESTORES ORIGINAL HARD DISK SUBDIRECTORY
  28.